package com.demo.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 课程实体类
 * @TableName course
 */
@TableName(value = "course")
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Course implements Serializable {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long coId;

    /**
     * 课程名称
     */
    private String coName;

    /**
     * 课程学分
     */
    private Float coCredit;

    /**
     * 课程类型
     */
    private String coType;

    /**
     * 备注
     */
    private String coRemark;

    /**
     * 修改时间
     */
    private Date coUpdateDate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}


